//主数据表格配置
export const columns = [
  // { title: '平台编码', dataIndex: 'code', key: 'code',require:false, align: 'center' },
  { title: '编码', dataIndex: 'standardCode', key: 'standardCode', require: true, align: 'center' },
  // { title: 'EDI编码', dataIndex: 'ediCode', key: 'ediCode',require:false, align: 'center' },
  { title: '国家医保代码', dataIndex: 'medicareCode', key: 'medicareCode', require: false, align: 'center' },
  // { title: '省医保代码', dataIndex: 'medicareCode2', key: 'medicareCode2',require:false, align: 'center' },
  // { title: '市医保代码', dataIndex: 'medicareCode3', key: 'medicareCode3',require:false, align: 'center' },
  // { title: '一级分类', dataIndex: 'first', key: 'first',require:false, align: 'center' },
  // { title: '二级分类', dataIndex: 'second', key: 'second',require:false, align: 'center' },
  // { title: '三级分类', dataIndex: 'third', key: 'third',require:false, align: 'center' },
  { title: '品名', dataIndex: 'productNameZh', key: 'productNameZh', require: true, align: 'center', scopedSlots: { customRender: 'column' }, },
  { title: '通用名', dataIndex: 'commonName', key: 'commonName', require: false, align: 'center' },
  { title: '价格(元)', dataIndex: 'price', key: 'price', require: false, align: 'center' },
  { title: '规格', dataIndex: 'spec', key: 'spec', require: true, align: 'center' },
  { title: '型号', dataIndex: 'model', key: 'model', require: false, align: 'center' },
  // { title: '描述', dataIndex: 'disc', key: 'disc',require:false, align: 'center' },
  // { title: '品牌', dataIndex: 'brand', key: 'brand',require:false, align: 'center' },
  // { title: '生产企业社会编码', dataIndex: 'manufacturerCode', key: 'manufacturerCode',require:false, align: 'center' },
  { title: '生产企业中文名称', dataIndex: 'manufacturerZh', key: 'manufacturerZh', require: true, align: 'center' },
  // { title: '产地', dataIndex: 'origin', key: 'origin',require:false, align: 'center' },
  { title: '产品类别', dataIndex: 'category', key: 'category', require: false, align: 'center' },
  { title: '计量单位', dataIndex: 'measurement', key: 'measurement', require: false, align: 'center' },
  // { title: '药品本位码', dataIndex: 'sdc', key: 'sdc',require:false, align: 'center' },
  // { title: '注册证类型',dataIndex: 'approvalType',key: 'approvalType',require:false,align: 'center'},
  { title: '注册证号', dataIndex: 'approvalNum', key: 'approvalNum', require: false, align: 'center' },
  // { title: '当前有效期始', dataIndex: 'approvalDate', key: 'approvalDate',require:false, align: 'center' },
  // { title: '当前有效期止', dataIndex: 'validDate', key: 'validDate',require:false, align: 'center' },
  // { title: '结算方式', dataIndex: 'settlement', key: 'settlement',require:false, align: 'center' },
  // { title: '带量标识', dataIndex: 'bulkFlage', key: 'bulkFlage',require:false, align: 'center' },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'operation',
    width: 150,
    align: 'center',
    scopedSlots: { customRender: 'action' },
  },
]
//主数据明细columns
export const columnsDetail = [
  { title: '编码', dataIndex: 'standardCode', key: 'standardCode', align: 'center' },
  { title: '品名', dataIndex: 'productNameZh', key: 'productNameZh', align: 'center', },
  { title: '供应商名称', dataIndex: 'supplierName', key: 'supplierName', align: 'center' },
  // { title: '通用名', dataIndex: 'tongYongm', key: 'tongYongm', align: 'center' },
  { title: '订单号', dataIndex: 'purOrderNo', key: 'purOrderNo', align: 'center', },
  { title: '生产企业名称', dataIndex: 'manufacturerZh', key: 'manufacturerZh', align: 'center', },
  { title: '规格', dataIndex: 'spec', key: 'spec', align: 'center' },
  { title: '型号', dataIndex: 'model', key: 'model', align: 'center' },
  { title: '计量单位', dataIndex: 'measurement', key: 'measurement', align: 'center' },
  { title: '单品含税价', dataIndex: 'iunitprice', key: 'iunitprice', align: 'center', scopedSlots: { customRender: 'iunitprice' } },
  { title: '采购数量', dataIndex: 'num', key: 'num', align: 'center', scopedSlots: { customRender: 'num' } },
  {
    title: '操作',
    dataIndex: 'action',
    width: 100,
    key: 'operation',
    align: 'center',
    scopedSlots: { customRender: 'action' },
  },
]

//主数据查询配置
export const q_formInfos = [
  { label: '品名', name: 'productNameZh', type: 'input', placeholder: '品名' },
  { label: '生产企业', name: 'manufacturerZh', type: 'input', placeholder: '生产企业' },
  { label: '注册证号', name: 'approvalNum', type: 'zchselect', zhuangTai: '全部', placeholder: '注册证号' },
  { label: '状态', name: 'state', type: 'dicselect', dicName: 'saleGoodsState', placeholder: '状态' },
  { label: ['查询', '重置'], type: 'botton' },
]

export const q_formDatas = {
  productNameZh: null,
  manufacturerZh: null,
  approvalNum: null,
  state: null,
  areaUse: null
}

//添加主数据表单配置
export const s_FormInfo = [
  // { label: '平台编码', name: 'code', type: 'input', placeholder: '请输入平台编码' },
  { label: '编码', name: 'standardCode', type: 'input', placeholder: '请输入区域内编码' },
  { label: 'EDI编码', name: 'ediCode', type: 'input', placeholder: '请输入EDI编码' },
  { label: '医保代码', name: 'medicareCode', type: 'input', placeholder: '请输入医保代码' },
  { label: '省医保代码', name: 'medicareCode2', type: 'input', placeholder: '请输入省医保代码' },
  { label: '市医保代码', name: 'medicareCode3', type: 'input', placeholder: '请输入市医保代码' },
  { label: '一级分类（学科、品类）', name: 'first', type: 'input', placeholder: '请输入一级分类（学科、品类）' },
  { label: '二级分类（用途、品目）', name: 'second', type: 'input', placeholder: '请输入二级分类（用途、品目）' },
  { label: '三级分类（部位、功能、品种）', name: 'third', type: 'input', placeholder: '请输入三级分类（部位、功能、品种）' },
  { label: '品名', name: 'productNameZh', type: 'input', placeholder: '请输入品名' },
  { label: '英文名称', name: 'productNameEn', type: 'input', placeholder: '请输入英文名称' },
  { label: '通用名(商品名)', name: 'commonName', type: 'input', placeholder: '请输入通用名(商品名)' },
  { label: '规格（特征、参数）', name: 'spec', type: 'input', placeholder: '请输入规格（特征、参数）' },
  { label: '型号(剂型)', name: 'model', type: 'input', placeholder: '请输入型号(剂型)' },
  { label: '描述', name: 'disc', type: 'input', placeholder: '请输入描述' },
  { label: '品牌', name: 'brand', type: 'input', placeholder: '请输入品牌' },
  { label: '上市许可持有企业社会编码', name: 'mahCode', type: 'input', placeholder: '请输入上市许可持有企业社会编码' },
  { label: '上市许可持有企业中文名', name: 'mahZh', type: 'input', placeholder: '请输入上市许可持有企业中文名' },
  { label: '上市许可持有企业英文名', name: 'mahEn', type: 'input', placeholder: '请输入上市许可持有企业英文名' },
  { label: '生产企业社会编码', name: 'manufacturerCode', type: 'input', placeholder: '请输入生产企业社会编码' },
  { label: '生产企业中文名称', name: 'manufacturerZh', type: 'input', placeholder: '请输入生产企业中文名称' },
  { label: '生产企业英文名称', name: 'manufacturerEn', type: 'input', placeholder: '请输入生产企业英文名称' },
  { label: '产地', name: 'origin', type: 'input', placeholder: '请输入产地' },
  { label: '产品类别 ', name: 'category', type: 'dicselect', dicName: 'medicalCategory', placeholder: '请选择产品类别 ' },
  { label: '计量单位', name: 'measurement', type: 'input', placeholder: '请输入计量单位' },
  { label: '药品本位码', name: 'sdc', type: 'input', placeholder: '请输入药品本位码' },
  { label: '当前批准类型 ', name: 'approvalType', type: 'input', placeholder: '请输入当前批准类型 ' },
  { label: '当前注册证号/注册证号', name: 'approvalNum', type: 'input', placeholder: '请输入当前注册证号/注册证号' },
  { label: '当前有效期始', name: 'approvalDate', type: 'input', placeholder: '请输入当前有效期始' },
  { label: '当前有效期止', name: 'validDate', type: 'input', placeholder: '请输入当前有效期止' },
  { label: '状态', name: 'state', type: 'input', placeholder: '请输入状态' },
  { label: '结算方式', name: 'settlement', type: 'input', placeholder: '请输入结算方式' },
  { label: '合同编码', name: 'acquisitionCode', type: 'input', placeholder: '请输入合同编码' },
  { label: '带量标识', name: 'bulkFlage', type: 'input', placeholder: '请输入带量标识' },
  // { label: '缩略图', name: 'img', type: 'input', placeholder: '请输入缩略图' },
  // { label: '照片1', name: 'img1', type: 'input', placeholder: '请输入照片1' },
  // { label: '照片2', name: 'img2', type: 'input', placeholder: '请输入照片2' },
  // { label: '照片3', name: 'img3', type: 'input', placeholder: '请输入照片3' },
  { label: '参考价', name: 'price', type: 'input', placeholder: '请输入参考价' },
  { label: ['保存', '重置'], type: 'botton' }
]
export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  standardCode: null,
  code: null,
  ediCode: null,
  standardCode: null,
  medicareCode: null,
  medicareCode2: null,
  medicareCode3: null,
  first: null,
  second: null,
  third: null,
  productNameZh: null,
  productNameEn: null,
  commonName: null,
  spec: null,
  model: null,
  disc: null,
  brand: null,
  mahOrgPid: null,
  mahCode: null,
  mahZh: null,
  mahEn: null,
  manufacturerOrgPid: null,
  manufacturerCode: null,
  manufacturerZh: null,
  manufacturerEn: null,
  origin: null,
  category: null,
  measurement: null,
  sdc: null,
  approvalType: null,
  approvalNum: null,
  approvalDate: null,
  validDate: null,
  licencePid: null,
  state: null,
  settlement: null,
  acquisitionCode: null,
  bulkFlage: null,
  img: null,
  img1: null,
  img2: null,
  img3: null,
  price: null
}
export const s_rules = {
  productNameZh: [{ required: true, message: '产品名称必填', trigger: 'blur' }],
  standardCode: [{ required: true, message: '编码必填', trigger: 'blur' }],
  spec: [{ required: true, message: '规格（特征、参数）必填', trigger: 'blur' }],
  manufacturerZh: [{ required: true, message: '生产企业中文名称必填', trigger: 'blur' }],
  price: [{ required: true, message: '参考价必填', trigger: 'blur' }]
}

//查看明细显示配置
export const infoDatas = [
  // { title: '数据有效区域', id: 'areaUse', value: '' },
  { title: '平台编码', id: 'code', value: '' },
  { title: 'EDI编码', id: 'ediCode', value: '' },
  { title: '编码', id: 'standardCode', value: '' },
  { title: '医保代码', id: 'medicareCode', value: '' },
  { title: '省医保代码', id: 'medicareCode2', value: '' },
  { title: '市医保代码', id: 'medicareCode3', value: '' },
  { title: '一级分类（学科、品类）', id: 'first', value: '' },
  { title: '二级分类（用途、品目）', id: 'second', value: '' },
  { title: '三级分类（部位、功能、品种）', id: 'third', value: '' },
  { title: '品名', id: 'productNameZh', value: '' },
  { title: '英文名称', id: 'productNameEn', value: '' },
  { title: '通用名(商品名)', id: 'commonName', value: '' },
  { title: '规格（特征、参数）', id: 'spec', value: '' },
  { title: '型号(剂型)', id: 'model', value: '' },
  { title: '描述', id: 'disc', value: '' },
  { title: '品牌', id: 'brand', value: '' },
  { title: '上市许可持有企业Pid', id: 'mahOrgPid', value: '' },
  { title: '上市许可持有企业社会编码', id: 'mahCode', value: '' },
  { title: '上市许可持有企业中文名', id: 'mahZh', value: '' },
  { title: '上市许可持有企业英文名', id: 'mahEn', value: '' },
  { title: '生产企业Pid', id: 'manufacturerOrgPid', value: '' },
  { title: '生产企业社会编码', id: 'manufacturerCode', value: '' },
  { title: '生产企业中文名称', id: 'manufacturerZh', value: '' },
  { title: '生产企业英文名称', id: 'manufacturerEn', value: '' },
  { title: '产地', id: 'origin', value: '' },
  { title: '产品类别', id: 'category', value: '' },
  { title: '计量单位', id: 'measurement', value: '' },
  { title: '药品本位码', id: 'sdc', value: '' },
  { title: '当前批准类型', id: 'approvalType', value: '' },
  { title: '当前注册证号/注册证号', id: 'approvalNum', value: '' },
  { title: '当前有效期始', id: 'approvalDate', value: '' },
  { title: '当前有效期止', id: 'validDate', value: '' },
  { title: '批准证照Pid', id: 'licencePid', value: '' },
  { title: '状态', id: 'state', value: '' },
  { title: '结算方式', id: 'settlement', value: '' },
  { title: '合同编码', id: 'acquisitionCode', value: '' },
  { title: '带量标识', id: 'bulkFlage', value: '' },
  { title: '缩略图', id: 'img', value: '' },
  { title: '照片1', id: 'img1', value: '' },
  { title: '照片2', id: 'img2', value: '' },
  { title: '照片3', id: 'img3', value: '' },
  { title: '参考价', id: 'price', value: '' }
]
